/**
 * 项目名称:
 *
 * @Author: 夏国倩
 * @Date: 2023/9/11 20:24
 * @Copyright
 */
package AbstractClass5;
//轿车类
public class Sedan extends Car {
    private int seatCapacity;

    public Sedan(String name, String brand, String licensePlate, String plateType, int seatCapacity) {
        super(name, brand, licensePlate, plateType);
        this.seatCapacity = seatCapacity;
    }
    public void displayIno(){
        super.displayInfo();
        System.out.println("座位数："+seatCapacity);
    }
}


